package com.facedemo.db.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.Generated;

//人脸特征
@Entity(
        indexes = {
        @Index(value = "personId DESC, faceId DESC", unique = true) //使用复合主键
})
public class PersonFeature {
    @Id(autoincrement = true)
    private Long id;
    private String personId;
    private Integer faceId;
    private byte[] feature;//特征值
    private String facePicPath;//人脸照片地址

@Generated(hash = 1923159387)
public PersonFeature(Long id, String personId, Integer faceId, byte[] feature,
        String facePicPath) {
    this.id = id;
    this.personId = personId;
    this.faceId = faceId;
    this.feature = feature;
    this.facePicPath = facePicPath;
}
@Generated(hash = 2003166566)
public PersonFeature() {
}
public Long getId() {
    return this.id;
}
public void setId(Long id) {
    this.id = id;
}
public String getPersonId() {
    return this.personId;
}
public void setPersonId(String personId) {
    this.personId = personId;
}
public Integer getFaceId() {
    return this.faceId;
}
public void setFaceId(Integer faceId) {
    this.faceId = faceId;
}
public byte[] getFeature() {
    return this.feature;
}
public void setFeature(byte[] feature) {
    this.feature = feature;
}
public String getFacePicPath() {
    return this.facePicPath;
}
public void setFacePicPath(String facePicPath) {
    this.facePicPath = facePicPath;
}
}
